package org.travel.api.travel.dao.Chao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.travel.api.travel.pojo.Flightsprice;
import org.travel.api.travel.pojo.Flightsxinxi;

public interface XinXiDao extends JpaRepository<Flightsprice,Long>, JpaSpecificationExecutor<Flightsprice> {


    @Query("select f FROM Flightsxinxi f where f.flightsId=:id")
    public Flightsxinxi getByFlightsId(@Param("id") Integer id);

}
